import type { TableProps } from "tdesign-vue-next";

export const tableColumns = [
  {
    colKey: "companyName",
    title: "公司名称（中文）",
    width: 220,
    filter: {
      type: "input",
      resetValue: "",
      // 按下 Enter 键时也触发确认搜索
      confirmEvents: ["onEnter"],
      showConfirmAndReset: true
    }
  },
  {
    colKey: "companyShortName",
    title: "公司简称（中文）",
    width: 230,
    filter: {
      type: "input",
      resetValue: "",
      // 按下 Enter 键时也触发确认搜索
      confirmEvents: ["onEnter"],
      showConfirmAndReset: true
    }
  },
  {
    colKey: "address",
    title: "公司地址（中文）",
    width: 300,
    filter: {
      type: "input",
      resetValue: "",
      // 按下 Enter 键时也触发确认搜索
      confirmEvents: ["onEnter"],
      showConfirmAndReset: true
    }
  },
  {
    colKey: "companyEngName",
    title: "公司名称（英文）",
    width: 220,
    filter: {
      type: "input",
      resetValue: "",
      // 按下 Enter 键时也触发确认搜索
      confirmEvents: ["onEnter"],
      showConfirmAndReset: true
    }
  },
  {
    colKey: "companyEngShortName",
    title: "公司简称（英文）",
    width: 230
  },
  {
    colKey: "engAddress",
    title: "公司地址（英文）",
    width: 300
  },
  {
    colKey: "bankName",
    title: "开户行（中文）",
    width: 230
  },
  {
    colKey: "bankEngName",
    title: "开户行（英文）",
    width: 230
  }
] as TableProps["columns"];
